package com.zjj.lbw.springbootstu.handwriting.annotation;

import com.zjj.lbw.springbootstu.handwriting.conditional.ZjjOnClassCondition;
import org.springframework.context.annotation.Conditional;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * @author zhanglei.zjj
 * @description 手写springboot，自定义条件注解
 * @date 2023/6/24 11:09
 */
@Target({ ElementType.TYPE, ElementType.METHOD })
@Retention(RetentionPolicy.RUNTIME)
@Conditional(ZjjOnClassCondition.class)
public @interface ZjjConditionalOnClass {
    String value() default "";
}
